<!DOCTYPE html>
<html>
  <head>
    <title>出错了.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<style>
		html,body{
			width:100%;
			height:100%;
			padding:10px;
		}
	</style>
  </head>
  
  <body>
  		<p>你没有权限访问此页面....页面将在10s之内跳转到主页...</p>
  		<p>倒计时...<span id="Time" >11</span>s</p>
  		<a href="index.jsp">没有跳转..请点击</a>
  </body>
</html>
<script language="JavaScript">
	window.onload=function(){
		timeTo()
	}
	function timeTo(){
		/* else if(a==2){
			window.location.href = "index.html"
		} */
		var t = setTimeout("timeTo()",1000)
		var a = document.getElementById("Time").innerHTML
		document.getElementById("Time").innerHTML = (a-1)
		if(a==0){
			clearTimeout(t)
		}
		else if(a==10){
			window.location.href = "index.jsp"
		}
	}	
</script>
